#include <iostream>
#include <vector>
using namespace std;

int main()
{
	// C++14 初始化程序块
	auto print_vector = [](const vector<int>& vec) {
		for (const auto& elem : vec) {
			cout << elem << " ";
		}
		cout << endl;
	};

	vector<int> numbers = { 1, 2, 3, 4, 5 };
	print_vector(numbers);

	system("pause");
	return 0;
}